package hu.service;

import hu.pojo.PageBean;
import hu.pojo.User;
import org.springframework.stereotype.Service;
@Service//标记服务类
public interface UserService {
    //根据id分页查找用户
    PageBean page(Integer page, Integer pageSize, Integer id);

    //根据id删除用户
    void delete(Integer id);

    //借阅书籍
    void borrow(String name);

    //环书
    void drop(String name);

    //用户注册
    void register(User user);

    //用户登录
    User login(User user);
}
